define({ "api": [
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p>"
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "src/doc/main.js",
    "group": "D:\\Software\\apis\\nt_device_api\\src\\doc\\main.js",
    "groupTitle": "D:\\Software\\apis\\nt_device_api\\src\\doc\\main.js",
    "name": ""
  },
  {
    "type": "post",
    "url": "api/paramConfig/data",
    "title": "DeleteParamConfig",
    "version": "1.0.0",
    "name": "删除参数",
    "group": "参数管理",
    "description": "<p>上传测量设备参数，更新的话可先删除全部参数，再添加;</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "action",
            "description": "<p>删除程序参数 delByProgId.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "machineCode",
            "description": "<p>设备唯一编号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "progId",
            "description": "<p>程序ID.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "body/form-data 参数以表单的形式提交:",
          "content": "\"action\": \"delByProgId\",\n\"machineCode\": \"SXFA1009\",\n\"progId\": \"1\"",
          "type": "form-data"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>错误码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>错误信息.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "    HTTP/1.1 200 OK\n    {\n      \"msg\": \"\",\n      \"code\": 0,\n\t     \"data\": {\n\t  \t     id:12//新增的参数id\n       }\n    }",
          "type": "json"
        }
      ]
    },
    "filename": "src/device.js",
    "groupTitle": "参数管理"
  },
  {
    "type": "post",
    "url": "api/paramConfig/data",
    "title": "AddParamConfigBatch",
    "version": "1.0.0",
    "name": "批量添加参数",
    "group": "参数管理",
    "description": "<p>批量上传同个设备的参数;</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "action",
            "description": "<p>添加程序参数 addBatch.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uid",
            "description": "<p>授权码.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "machineCode",
            "description": "<p>设备唯一编号.</p>"
          },
          {
            "group": "Parameter",
            "type": "JSON",
            "optional": false,
            "field": "data",
            "description": "<p>数据JSON.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "progId",
            "description": "<p>程序ID.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "progName",
            "description": "<p>参数名.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "paramKey",
            "description": "<p>M值.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "paramName",
            "description": "<p>参数名称.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>参数类型.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "nominalValue",
            "description": "<p>名义值.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "lowerTolerance",
            "description": "<p>下公差.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "upperTolerance",
            "description": "<p>上公差.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "warningUp",
            "description": "<p>下公差.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "warningLow",
            "description": "<p>下参数.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "body/form-data 参数以表单的形式提交:",
          "content": "\"action\":\"addBatch\",//动作\n\"uid\":\"\",//授权id\n\"machineCode\": \"SXFA1009\",//量具编号\n\"data\": \n   [{\n      \"progName\": \"test\",\n      \"progId\": \"1\",\n      \"paramKey\": \"M2\",\n      \"paramName\": \"MM2\",\n      \"type\": \"2\",\n      \"nominalValue\": \"0\",\n      \"lowerTolerance\": \"0\",\n      \"upperTolerance\": \"0\",\n      \"warningUp\": \"1\",\n      \"warningLow\": \"2\",\n      \"createTime\": \"3\"\n  }, {\n      \"progName\": \"test\",\n      \"progId\": \"2\",\n      \"paramKey\": \"M3\",\n      \"paramName\": \"MM3\",\n      \"nominalValue\": \"0\",\n      \"lowerTolerance\": \"0\",\n      \"upperTolerance\": \"0\",\n      \"warningUp\": \"1\",\n      \"warningLow\": \"2\",\n      \"type\": \"1\",\n      \"createTime\": \"3\"\n  }]",
          "type": "form-data"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>错误码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>错误信息.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n   \"msg\": \"操作成功\",\n\t  \"code\": 0,\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/device.js",
    "groupTitle": "参数管理"
  },
  {
    "type": "post",
    "url": "api/paramConfig/data",
    "title": "AddParamConfig",
    "version": "1.0.0",
    "name": "添加参数",
    "group": "参数管理",
    "description": "<p>上传一个程序的一条参数;</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "action",
            "description": "<p>添加程序参数 add.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uid",
            "description": "<p>授权码.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "machineCode",
            "description": "<p>设备唯一编号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "progId",
            "description": "<p>程序ID.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "progName",
            "description": "<p>参数名.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "paramKey",
            "description": "<p>M值.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "paramName",
            "description": "<p>参数名称.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>参数类型.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "nominalValue",
            "description": "<p>名义值.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "lowerTolerance",
            "description": "<p>下公差.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "upperTolerance",
            "description": "<p>上公差.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "warningUp",
            "description": "<p>下公差.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "warningLow",
            "description": "<p>下参数.</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "isdelete",
            "description": "<ol start=\"0\"> <li></li> </ol>"
          }
        ]
      },
      "examples": [
        {
          "title": "body/form-data 参数以表单的形式提交:",
          "content": "\"action\":\"add\",//动作\n\"uid\":\"\",//授权id\n\"machineCode\": \"SXFA1009\",//量具编号\n\"progId\": 63,//机种\n\"progName\": \"气缸孔-TRA100E\",//机种名称\n\"paramKey\": \"M1\",//M值\n\"paramName\": \"气缸孔-直径上\",//M值名称\n\"type\": \"0\",//参数类型  0-数值 1-布尔值\n\"nominalValue\": 25.365,//名义值\n\"lowerTolerance\": -0.01,//下公差\n\"upperTolerance\": 0.01,//上公差\n\"warningUp\": 0.008,//上参数\n\"warningLow\": -0.008,//下参数\n\"isdelete\": 0 // 0",
          "type": "form-data"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>错误码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>错误信息.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n   \"msg\": \"\",\n\t  \"code\": 0,\n\t  \"data\": {\n\t  \t id:12//新增的参数id\n    }\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/device.js",
    "groupTitle": "参数管理"
  },
  {
    "type": "GET",
    "url": "api/equipment/data",
    "title": "HeartBeat",
    "group": "心跳",
    "version": "1.0.0",
    "description": "<p>心跳，三分钟上报一次心跳；</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "action",
            "description": "<p>heartbeat.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uid",
            "description": "<p>设备编码</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "operateTime",
            "description": "<p>时间戳</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "参数",
          "content": "?action=heartbeat&uid=SXFA1010&time=1634666180",
          "type": "string"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>错误码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>错误信息.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": 0,\n  \"message\": \"\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/heart.js",
    "groupTitle": "心跳",
    "name": "GetApiEquipmentData"
  },
  {
    "type": "POST",
    "url": "api/equipment/auth",
    "title": "Auth",
    "group": "授权",
    "version": "1.0.0",
    "description": "<p>上报测量设备程序、参数配置信息；</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "action",
            "description": "<p>activation.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uid",
            "description": "<p>激活码ID.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "machineCode",
            "description": "<p>设备唯一编码.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "body/form-data 参数以表单的形式提交:",
          "content": "\"action\":\"activation\"\n\"uid\":\"008\"\n\"machineCode\":\"SXFA1010\"",
          "type": "form-data"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": 0,\n  \"message\": \"激活成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/message.js",
    "groupTitle": "授权",
    "name": "PostApiEquipmentAuth"
  },
  {
    "type": "post",
    "url": "api/result/data",
    "title": "UploadDatas",
    "version": "1.0.0",
    "name": "UploadDatas",
    "group": "数据",
    "description": "<p>上传测试结果;</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "action",
            "description": "<p>添加程序参数 add.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uid",
            "description": "<p>授权码.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "machineCode",
            "description": "<p>设备唯一编号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "progId",
            "description": "<p>程序ID.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "serialNumber",
            "description": "<p>序列号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "result",
            "description": "<p>结果 OK|NG.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "ngReason",
            "description": "<p>ng原因.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "workOperation",
            "description": "<p>全部.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "workOption",
            "description": "<p>首件.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "templateResultId",
            "description": "<p>无需.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "templateShowId",
            "description": "<p>无需.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "factoryCode",
            "description": "<p>工厂编号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "operator",
            "description": "<p>下参数.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "operateTime",
            "description": "<p>时间.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "workID",
            "description": "<p>工件号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "work",
            "description": "<p>工件名.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "eventID",
            "description": "<p>事件号.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "event",
            "description": "<p>事件名.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "mType",
            "description": "<p>测量类型.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "remark",
            "description": "<p>备注.</p>"
          },
          {
            "group": "Parameter",
            "type": "Json",
            "optional": false,
            "field": "detailListStr",
            "description": "<p>参数结果.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "body/form-data 参数以表单的形式提交:",
          "content": "\"action\":\"add\",//动作\n\"uid\":\"\",//授权id\n\"machineCode\": \"SXFA1010\",//\n\"progId\": \"48\",//机种\n\"serialNumber\": \"\",//序列号\n\"result\": \"OK\",//结果\n\"ngReason\": \"\",//ng原因\n\"workOperation\": \"全部\",//\n\"workOption\": \"首件\",//工作时间\n\"templateResultId\": null,//\n\"templateShowId\": null,//导出模板id\n\"factoryCode\": \"108\",\n\"equipmentId\": 2,//量具id\n\"operator\": \"OPERATER 1\",//操作员\n\"operateTime\": \"2019-11-19 09:33:49\",//时间\n\"detailListStr\": [{\n        \"name\": \"1\", //参数名\n        \"mValue\": 25.4027,\n        \"rValue\": 34,\n        \"gValue\": \"\",\n        \"eValue\": \"\",\n        \"jValue\": \"\",\n        \"isbool\": 0,\n        \"imgurl\": \"\"\n    }, {\n        \"name\": \"2\", //参数名\n        \"mValue\": 25.4027,\n        \"rValue\": 34,\n        \"gValue\": \"\",\n        \"eValue\": \"\",\n         \"jValue\": \"\",\n         \"isbool\": 0,\n         \"imgurl\": \"\"\n     }\n ],\n\"info\": {\n\t\t\t\"remark\": null, // 备注\n\t\t\t\"params\": {},\n\t\t\t\"work\": null, // 工件信息\n\t\t\t\"mType\": \"抽检/巡检\",\n\t\t\t\"workID\": \"1\", // 工件号\n\t\t\t\"eventID\": \"2\", // 事件号\n\t\t\t\"processNo\": \"粗加工\",\n\t\t\t\"event\": \"2\"\n\t\t}\n}",
          "type": "form-data"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>错误码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>错误信息.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\t{\n   \"msg\": \"操作成功\",\n   \"code\": 0,\n   \"data\": {\n   \t\"id\": 173411, //数据接口id\n   \t\"pylist\": [{ //判异数据\n   \t\t\"index\": 1, //数据下标\n   \t\t\"detailId\": 1120344,//详细id，用于后续原因更新\n   \t\t\"pyval\": 1 //判异类型 1-8\n   \t}]\n   }\n }",
          "type": "json"
        }
      ]
    },
    "filename": "src/datas.js",
    "groupTitle": "数据"
  }
] });
